package cn.ccew.apk.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import cn.ccew.common.base.model.BaseEntity;

@Entity
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Table(name = "apk_software")
public class Software extends BaseEntity {
	/**
	 * 软件名称名称
	 */
	@Column(name = "type_text")
	private String text;
	
	/**
	 * 资源描述
	 */
	private String description;

	/**
	 * 是否是叶子节点，不做持久
	 */
	@Transient
	private boolean leaf = true;

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public boolean getLeaf() {
		return leaf;
	}

	public void setLeaf(boolean leaf) {
		this.leaf = leaf;
	}

}
